package demo.axitdn.physic;

public class State {
	public Vector3f position;
    public Vector3f momentum;
    public Vector3f velocity;
    public float mass;
    public float invMass;
    public float[] pos; //position
    public float[] vel; //velocity;
    public float[] mom;
    
    public State() {
        position = new Vector3f();
        momentum = new Vector3f();
        velocity = new Vector3f();
        pos=new float[2];
        vel=new float[2];
        mass = 1f;
        invMass = 1f/mass;
    }
    
    public State copy() {
    	State s=new State();
    	s.velocity=(Vector3f) velocity.clone();
    	s.position=(Vector3f) position.clone();
    	s.momentum=(Vector3f) momentum.clone();
    	s.mass=mass;
    	s.invMass=invMass;
    	return s;
    }
	
}
